import { useParams } from "react-router-dom";
const Article = () => {
  const params = useParams();
  console.log("params", params);
  const user = params.user;
  return (
    <div>
      this is article
      <div>
        <div>参数：{user}</div>
      </div>
    </div>
  );
};

export default Article;
